package com.zhou;

public class InfoEntity {
	/**
	 * 发明名称、申请号、申请日、申请人、发明人、公开（公告）号、公开（公告）日、
	 * IPC主分类号、IPC副分类号、药物范畴分类号、申请人地址、摘要
	 */
	public String inventionName = "";
	public String applicationNumber = "";
	public String applicationDate = "";
	public String applicant = "";
	public String inventor = "";
	public String publicAnnouncementNumber = "";
	public String publicAnnouncementDay = "";
	public String mainCategoryIPC = "";
	public String subCategoryIPC = "";
	public String drugCategoryDOI = "";
	public String applicantAddress = "";
	public String summary = "";
	
	public String ipc = "";
	public String priorityNumber = "";
	public String priorityDate = "";
	public String priorityZipCode = "";
	public String cpc = "";
	
	public static String[] fieldName = new String[] {"发明名称", "申请号", "申请日", "申请人", "发明人", "公开（公告）号", "公开（公告）日", "IPC主分类号", "IPC副分类号", "药物范畴分类号", "申请人地址", "摘要"};
	public static String[] fieldNameDetail = {"发明名称","申请号","申请日","申请(专利权)人","发明人","公开(公告)号","IPC分类号","优先权号","优先权日","申请人地址","申请人邮编","CPC分类号","摘要"};
	/**
	 * 无参构造函数
	 */
	public InfoEntity() {}
	/**
	 * 构造函数
	 * @param inventionName
	 * @param applicationNumber
	 * @param applicationDate
	 * @param applicant
	 * @param inventor
	 * @param publicAnnouncementNumber
	 * @param publicAnnouncementDay
	 * @param mainCategoryIPC
	 * @param subCategoryIPC
	 * @param drugCategoryDOI
	 * @param applicantAddress
	 * @param summary
	 */
	public InfoEntity(String inventionName, String applicationNumber, String applicationDate, String applicant,
			String inventor, String publicAnnouncementNumber, String publicAnnouncementDay, String mainCategoryIPC,
			String subCategoryIPC, String drugCategoryDOI, String applicantAddress, String summary) {
		super();
		this.inventionName = inventionName;
		this.applicationNumber = applicationNumber;
		this.applicationDate = applicationDate;
		this.applicant = applicant;
		this.inventor = inventor;
		this.publicAnnouncementNumber = publicAnnouncementNumber;
		this.publicAnnouncementDay = publicAnnouncementDay;
		this.mainCategoryIPC = mainCategoryIPC;
		this.subCategoryIPC = subCategoryIPC;
		this.drugCategoryDOI = drugCategoryDOI;
		this.applicantAddress = applicantAddress;
		this.summary = summary;
	}
	
	
	/**
	 * 
	 * @param inventionName
	 * @param applicationNumber
	 * @param applicationDate
	 * @param applicant
	 * @param inventor
	 * @param publicAnnouncementNumber
	 * @param publicAnnouncementDay
	 * @param applicantAddress
	 * @param summary
	 * @param ipc
	 * @param priorityNumber
	 * @param priorityDate
	 * @param priorityZipCode
	 * @param cpc
	 */
	public InfoEntity(String inventionName, String applicationNumber,
			String applicationDate, String applicant, String inventor,
			String publicAnnouncementNumber, String publicAnnouncementDay,
			String applicantAddress, String summary, String ipc,
			String priorityNumber, String priorityDate, String priorityZipCode,
			String cpc) {
		super();
		this.inventionName = inventionName;
		this.applicationNumber = applicationNumber;
		this.applicationDate = applicationDate;
		this.applicant = applicant;
		this.inventor = inventor;
		this.publicAnnouncementNumber = publicAnnouncementNumber;
		this.publicAnnouncementDay = publicAnnouncementDay;
		this.applicantAddress = applicantAddress;
		this.summary = summary;
		this.ipc = ipc;
		this.priorityNumber = priorityNumber;
		this.priorityDate = priorityDate;
		this.priorityZipCode = priorityZipCode;
		this.cpc = cpc;
	}
	/**
	 * 设置所有的属性
	 * @param values
	 */
	void setAllAttribute(String[] values){
		
		if(values.length < 11) {
			return;
		}
		
		this.inventionName = values[0].trim();
		this.applicationNumber = values[1].split(":")[1].trim();
		this.applicationDate = values[2].split(":")[1].trim();
		this.applicant = values[3].split(":")[1].trim();
		this.inventor = values[4].split(":")[1].trim();
		this.publicAnnouncementNumber = values[5].split(":")[1].trim();
		this.publicAnnouncementDay = values[6].split(":")[1].trim();
		this.mainCategoryIPC = values[7].split(":")[1].trim();
		this.subCategoryIPC = values[8].split(":")[1].trim();
		this.drugCategoryDOI = values[9].split(":")[1].trim();
		this.applicantAddress = values[10].split(":")[1].trim();
	}
	
	@Override
	public String toString() {
		return "InfoEntity [inventionName=" + inventionName + ", applicationNumber=" + applicationNumber
				+ ", applicationDate=" + applicationDate + ", applicant=" + applicant + ", inventor=" + inventor
				+ ", publicAnnouncementNumber=" + publicAnnouncementNumber + ", publicAnnouncementDay="
				+ publicAnnouncementDay + ", mainCategoryIPC=" + mainCategoryIPC + ", subCategoryIPC=" + subCategoryIPC
				+ ", drugCategoryDOI=" + drugCategoryDOI + ", applicantAddress=" + applicantAddress + ", summary="
				+ summary + "]";
	}
	
	/**
	 * set get 方法
	 * @return
	 */
	public String getInventionName() {
		return inventionName;
	}
	public void setInventionName(String inventionName) {
		this.inventionName = inventionName;
	}
	public String getApplicationNumber() {
		return applicationNumber;
	}
	public void setApplicationNumber(String applicationNumber) {
		this.applicationNumber = applicationNumber;
	}
	public String getApplicationDate() {
		return applicationDate;
	}
	public void setApplicationDate(String applicationDate) {
		this.applicationDate = applicationDate;
	}
	public String getApplicant() {
		return applicant;
	}
	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}
	public String getInventor() {
		return inventor;
	}
	public void setInventor(String inventor) {
		this.inventor = inventor;
	}
	public String getPublicAnnouncementNumber() {
		return publicAnnouncementNumber;
	}
	public void setPublicAnnouncementNumber(String publicAnnouncementNumber) {
		this.publicAnnouncementNumber = publicAnnouncementNumber;
	}
	public String getPublicAnnouncementDay() {
		return publicAnnouncementDay;
	}
	public void setPublicAnnouncementDay(String publicAnnouncementDay) {
		this.publicAnnouncementDay = publicAnnouncementDay;
	}
	public String getMainCategoryIPC() {
		return mainCategoryIPC;
	}
	public void setMainCategoryIPC(String mainCategoryIPC) {
		this.mainCategoryIPC = mainCategoryIPC;
	}
	public String getSubCategoryIPC() {
		return subCategoryIPC;
	}
	public void setSubCategoryIPC(String subCategoryIPC) {
		this.subCategoryIPC = subCategoryIPC;
	}
	public String getDrugCategoryDOI() {
		return drugCategoryDOI;
	}
	public void setDrugCategoryDOI(String drugCategoryDOI) {
		this.drugCategoryDOI = drugCategoryDOI;
	}
	public String getApplicantAddress() {
		return applicantAddress;
	}
	public void setApplicantAddress(String applicantAddress) {
		this.applicantAddress = applicantAddress;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String[] getFieldName() {
		return fieldName;
	}
	public void setFieldName(String[] fieldName) {
		this.fieldName = fieldName;
	}
	public String getIpc() {
		return ipc;
	}
	public void setIpc(String ipc) {
		this.ipc = ipc;
	}
	public String getPriorityNumber() {
		return priorityNumber;
	}
	public void setPriorityNumber(String priorityNumber) {
		this.priorityNumber = priorityNumber;
	}
	public String getPriorityDate() {
		return priorityDate;
	}
	public void setPriorityDate(String priorityDate) {
		this.priorityDate = priorityDate;
	}
	public String getPriorityZipCode() {
		return priorityZipCode;
	}
	public void setPriorityZipCode(String priorityZipCode) {
		this.priorityZipCode = priorityZipCode;
	}
	public String getCpc() {
		return cpc;
	}
	public void setCpc(String cpc) {
		this.cpc = cpc;
	}
	
	
}
